using AIFSContentManagementSystem;
using AIFSCMS.Infrastructure.ProxyModels;
using AIFSDataAccessLayer.Utilities;

namespace AIFSCMS.Infrastructure.EntityMappers
{
    /// <summary>
    /// Helper class to Serialize Criteria to/from xml
    /// </summary>
    public sealed class CriteriaMapper : EntityMapper<CriterionProxy>
    {
        protected override void Map(System.Data.DataRow drEntity, CriterionProxy dto)
        {
            dto.CriteriaId = DataTableUtil.ToIntType(drEntity, "CRITERIA_ID");
        }
    }
}
